package com.tool.tools;

import com.tool.tools.view.CustomApp;
import javafx.application.Application;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
@SpringBootApplication
public class ToolListApplication  {

    public static void main(String[] args) {
        new SpringApplicationBuilder(ToolListApplication.class).web(WebApplicationType.NONE)
                .run(args);
        Runtime.getRuntime().addShutdownHook(new Thread(() -> {
            // 关闭资源等操作
        }));

        // 启动 JavaFX 应用程序
        new Thread(() -> Application.launch(CustomApp.class)).start();
    }

}
